<?php

namespace App\Sdks\Feishu\Traits;

trait Employee
{
    /**
     * @param $employee_ids
     * @return mixed
     * 获取员工列表
     */
    public function getEmployees($employee_ids){
        $url = $this->getApiUrl('user_batch_get');

        $query = [];
        foreach($employee_ids as $employee_id){
            $query[] = 'employee_ids='. $employee_id;
        }

        $url .= '?'. implode("&", $query);

        $ret = $this->authRequest($url);

        return $ret;
    }
}
